#include <bits/stdc++.h>
using namespace std;
int main()
{
	int a, b, sum, cnt = 0;
	char str[101];
	cin >> a >> b;
	sum = a + b;
	if(sum == 0)
		cout << 0;
	if(sum < 0){
		cout << '-';
		sum = -sum;
	}
	while(sum != 0){
		str[cnt++] = char(sum%10 + 48);
		sum /= 10;
	}
	for(int i = cnt - 1; i >= 0; i--){
		cout << str[i];
		if(i%3 == 0 && i != 0)
			cout << ","; 
	}
	return 0;
} 
